//账号信息的ts类型
export interface T_ResponseData {
    code: number,
    message: string,
    ok: boolean
}

//代表一个账号信息的ts类型
export interface T_User {
    id?: number,
    createTime?: string,
    updateTime?: string,
    password: string,
    name: string,
    username: string,
    phone?: null,
    roleName: string
}

//获取全部用户信息返回数据的ts类型
export interface T_UserResponseData extends T_ResponseData {
    data: {
        records: T_User[],
        total: number,
        size: number,
        current: number,
        pages: number
    }
}

//代表一个职位的ts类型
export interface T_RoleData {
    id?: number,
    createTime?: string,
    updateTime?: string,
    roleName: string,
    remark: null
}

//获取全部职位的接口返回数据ts类型
export interface T_AllRoleResponseData extends T_ResponseData {
    data: {
        assignRoles: T_RoleData[]
        allRolesList: T_RoleData[]
    }
}

//给用户分配职位接口携带参数ts类型
export interface T_SetRoleData {
    roleIdList: number[],
    userId: number
}
